package com.app.service;

import com.app.model.EntrepreneurshipModel;
import com.app.vo.EntrepreneurshipVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;


public interface EntrepreneurshipService {
    void update(EntrepreneurshipModel model);

    void insert(EntrepreneurshipModel model);

    void deleteById(Integer id);

    EntrepreneurshipVo selectList(Integer page, Integer limit, String keyword, Integer type, Integer status, Integer township);

    EntrepreneurshipVo selectList(Integer page, Integer limit, String keyword, Integer type, Double longitude, Double latitude, Integer township);

    EntrepreneurshipModel selectById(Integer id);

    List<EntrepreneurshipModel> selectByUserId(Integer id);


    /**
     * 查找由关键词
     *
     * @param queryWrapper 查询包装器
     * @return {@link List}<{@link EntrepreneurshipModel}>
     */
    List<EntrepreneurshipModel> selectByKeywords(QueryWrapper<EntrepreneurshipModel> queryWrapper);

}
